#ifndef PLAYER_H
#define	PLAYER_H

typedef struct
{
    int x;
    int y;
} Position;

class Player
{
    private:
        char nama[50];
        Position PosPlayer;
        int Place;
        char FacingTo;
    public:
        // Konstruktor
        Player(char *nama);
        Player(const Player&);
        // Operator Assignment
        Player& operator= (const Player&);

        // Destruktor
        ~Player();

        // Fungsi Lain
        char* GetName();

        void Move(char FacingTo);

        void Teleport(int Place);

        void ChangeDirect(char FaceTo);

        void Plow();

        void Put(int slot, int jumlah);

        void Slash();

        void Water();

        void Harvest();

        void Eat(int slot);

        Position GetPosition() const;

        void SetPosition (int x, int y);

        char GetFace() const;

        int GetPlace() const;
    
};
extern Player P;
#endif

